package vno.fux.task
{
	public class Task
	{
		private var _pages:Array;
		public function Task()
		{
			_pages = [];
		}
		public function addPage(index_:int):void
		{
			_pages[index_] = new TaskPage;
		}
		public function getPage(index_:int):TaskPage
		{
			return _pages[index_];
		}
		public function getVailidPage():TaskPage//fux
		{
			for(var i:int=0; i<_pages.length; i++)
			{
				var page:TaskPage = _pages[i];
				if(page.meetCondition())
				{
					return page;
				}
			}
			return null;
		}
	}
}